﻿namespace System
{
    internal static class BufferExtend
    {
        internal static unsafe void ZeroMemory(byte* destination, uint length)
        {
            if (length == 0) return;
            for (int i = 0; i < length; i++)
            {
                destination[i] = 0;
            }
        }

        internal static unsafe void Memcpy(byte* destination, byte* source, int length)
        {
            if (length == 0) return;
            for (int i = 0; i < length; i++)
            {
                destination[i] = source[i];
            }
        }
    }
}
